<template>
	<view>
		<view @click="toTop" class="back" v-if="isBackTop">
			<image src="/static/backtop.png" style="width: 80rpx;height: 80rpx;"></image>
		</view>
	</view>
</template>

<script>
	import {mapState} from "vuex";
	export default{
		data(){
			return{
				
			}
		},
		computed:{
			...mapState(['isBackTop'])
		},
		methods:{
			
		}
	}
</script>

<style>
	.back{
		position: fixed;
		right: 20rpx;
		bottom: 50rpx;
	}
</style>
